<!-- <template>
    <div>
        <table>
            <tbody>
                <tr>
                    <td></td>
                </tr>
            </tbody>
        </table>
    </div>
</template>

<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue'
import axios from 'axios'
//导入路由器对象对象的方法
import { useRouter, useRoute } from 'vue-router';
//创建一个路由器对象  可以实现页面跳转 push可以实现页面跳转
const router = useRouter();
const route = useRoute();
import { useUserStore } from '@/stores/User'
const abc = useUserStore();
let info: any = ref({
    userName: '',
    userPwd: ''
})
const ok = () => {
    // axios({
    //     url: '/api/Admins/AddAdmin',
    //     method: 'post',
    //     data: {
    //         userName: info.userName,
    //         userPwd: info.userPwd,
    //     }
    // })
    //     .then((res) => {
    //         console.log(res);

    //     })
    //     .catch((err) => {
    //         console.log(err);

    //     })
    axios.post('/api/Admins/AddAdmin', info)
        .then((res) => {
            console.log(res);

        })
        .catch((err) => {
            console.log(err);

        })
}
</script>

<style scoped></style> -->